// pages/products/products/products.js
Page({
  data: {
    products: []
  },
  onLoad: function(options) {
    const products = options.products;
    this.setData({
      products
    });
  }
});